ÄúµÄλÖãºÑ°ÃÎÍøÊ×Ò³£¾±à³ÌÀÖÔ°£¾VBScript£¾VBScript


objects constants operators statements functions properties methods






FUNCTION:  CInt( )

You can determine the expression subtype by using the function VarType( ).


CInt(Number)

The CInt function converts any number to the variant of subtype Integer.

Converts to values ranging from -32,768 to 32,767 The number is rounded off.

Code:
<% anynumber=1234.567 %>
<% =CInt(anynumber) %>

Output:
1235